package org.luxor.digital.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.luxor.commons.core.validator.group.UpdateGroup;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;


/**
 * 字典分类表
 *
 * @author Mark @date 2020-07-26 14:19:09
 */
@Data
@TableName("tb_sys_dictionary_category")
@ApiModel(description = "字典分类表")
public class SysDictionaryCategoryEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键Id")
    @TableId(type = IdType.ASSIGN_ID)
    @NotNull(message = "dicId不能为空", groups = UpdateGroup.class)
    private Long id;

    @ApiModelProperty(value = "字典分类代码")
    @NotBlank(message = "dicCode，不能为空")
    private String dicCode;

    @ApiModelProperty(value = "字典分类描述")
    @NotBlank(message = "dicDesc，不能为空")
    private String dicDesc;

    @ApiModelProperty(value = "0是叶子节点；1是目录")
    @NotBlank(message = "leaf，不能为空")
    private String leaf;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "字典分类排序号")
    private Integer orderNo;

    @ApiModelProperty(value = "是否启动(1-启用；0-禁用)")
    private Boolean enabled;

    @ApiModelProperty(value = "逻辑删除(1-删除；0-未删除)")
    private Boolean deleted;


}
